package org.jeecgframework.web.system.pojo.base;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**   
 * @Title: Entity
 * @Description: 设备计划巡检
 * @author onlineGenerator
 * @date 2016-10-11 14:53:11
 * @version V1.0   
 *
 */
@Entity
@Table(name = "cbs_es_plan_ip", schema = "")
@SuppressWarnings("serial")
public class CbsEsPlanIpEntity implements java.io.Serializable {
	/**主键*/
	private java.lang.String id;
	/**设备id*/
	private ZyEquipmentSpareEntity equipmentSpare;
	/**巡检单位id*/
	private java.lang.String ipCompanyId;
	/**巡检年份*/
	private java.lang.Integer ipYear;
	/**巡检月份*/
	private java.lang.Integer ipMonth;
	/**是否可调整 1可调整 0不可以*/
	private java.lang.String isAdjustment;
	/**生成来源*/
	private java.lang.String generateSource;
	
	/**createName*/
	private java.lang.String createName;
	/**createBy*/
	private java.lang.String createBy;
	/**createDate*/
	private java.util.Date createDate;
	/**updateName*/
	private java.lang.String updateName;
	/**updateBy*/
	private java.lang.String updateBy;
	/**updateDate*/
	private java.util.Date updateDate;
	/**影院ID*/
	private String cinemaId;
	
	/*是否可以移动，对应d类情况*/
	private Boolean canMove = true;
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  主键
	 */
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=true,length=36)
	public java.lang.String getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  主键
	 */
	public void setId(java.lang.String id){
		this.id = id;
	}
	
	/**
	 * @return 获取 设备
	 */
	@ManyToOne
	@JoinColumn(name = "ES_ID")
	public ZyEquipmentSpareEntity getEquipmentSpare() {
		return equipmentSpare;
	}
	
	/**
	 * @param 设置 设备
	 */
	public void setEquipmentSpare(ZyEquipmentSpareEntity equipmentSpare) {
		this.equipmentSpare = equipmentSpare;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  巡检单位id
	 */
	@Column(name ="IP_COMPANY_ID",nullable=true,length=36)
	public java.lang.String getIpCompanyId(){
		return this.ipCompanyId;
	}


	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  巡检单位id
	 */
	public void setIpCompanyId(java.lang.String ipCompanyId){
		this.ipCompanyId = ipCompanyId;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  巡检年份
	 */
	@Column(name ="IP_YEAR",nullable=true,length=10)
	public java.lang.Integer getIpYear(){
		return this.ipYear;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  巡检年份
	 */
	public void setIpYear(java.lang.Integer ipYear){
		this.ipYear = ipYear;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  巡检月份
	 */
	@Column(name ="IP_MONTH",nullable=true,length=10)
	public java.lang.Integer getIpMonth(){
		return this.ipMonth;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  巡检月份
	 */
	public void setIpMonth(java.lang.Integer ipMonth){
		this.ipMonth = ipMonth;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  是否可调整
	 */
	@Column(name ="IS_ADJUSTMENT",nullable=true,length=1)
	public java.lang.String getIsAdjustment(){
		return this.isAdjustment;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  是否可调整
	 */
	public void setIsAdjustment(java.lang.String isAdjustment){
		this.isAdjustment = isAdjustment;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  createName
	 */
	@Column(name ="CREATE_NAME",nullable=true,length=32)
	public java.lang.String getCreateName(){
		return this.createName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  createName
	 */
	public void setCreateName(java.lang.String createName){
		this.createName = createName;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  createBy
	 */
	@Column(name ="CREATE_BY",nullable=true,length=32)
	public java.lang.String getCreateBy(){
		return this.createBy;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  createBy
	 */
	public void setCreateBy(java.lang.String createBy){
		this.createBy = createBy;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  createDate
	 */
	@Column(name ="CREATE_DATE",nullable=true)
	public java.util.Date getCreateDate(){
		return this.createDate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  createDate
	 */
	public void setCreateDate(java.util.Date createDate){
		this.createDate = createDate;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  updateName
	 */
	@Column(name ="UPDATE_NAME",nullable=true,length=32)
	public java.lang.String getUpdateName(){
		return this.updateName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  updateName
	 */
	public void setUpdateName(java.lang.String updateName){
		this.updateName = updateName;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  updateBy
	 */
	@Column(name ="UPDATE_BY",nullable=true,length=32)
	public java.lang.String getUpdateBy(){
		return this.updateBy;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  updateBy
	 */
	public void setUpdateBy(java.lang.String updateBy){
		this.updateBy = updateBy;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  updateDate
	 */
	@Column(name ="UPDATE_DATE",nullable=true)
	public java.util.Date getUpdateDate(){
		return this.updateDate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  updateDate
	 */
	public void setUpdateDate(java.util.Date updateDate){
		this.updateDate = updateDate;
	}

	/**
	 * @return 获取 影院ID
	 */
	@Column(name ="cinema_id",nullable=true)
	public String getCinemaId() {
		return cinemaId;
	}

	/**
	 * @param 设置 cinemaId
	 */
	public void setCinemaId(String cinemaId) {
		this.cinemaId = cinemaId;
	}

	/**
	 * @return 获取 生成来源
	 */
	@Column(name="generate_source")
	public java.lang.String getGenerateSource() {
		return generateSource;
	}

	/**
	 * @param 设置 生成来源
	 */
	public void setGenerateSource(java.lang.String generateSource) {
		this.generateSource = generateSource;
	}

	@Transient
	public Boolean getCanMove() {
		return canMove;
	}

	public void setCanMove(Boolean canMove) {
		this.canMove = canMove;
	}

	
	
	
}
